-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve sending of large video frames in toxav. #718
Conversation
Reviewed 8 of 8 files at r1. toxav/rtp.c, line 153 at r1 (raw file):
Create a constant for toxav/rtp.c, line 263 at r1 (raw file):
Make sure memory is allocated. toxav/rtp.c, line 281 at r1 (raw file):
Make sure memory is allocated. toxav/rtp.c, line 303 at r1 (raw file):
Add a check to make sure toxav/rtp.c, line 443 at r1 (raw file):
Shouldn't there be a return here or at least changing the offset? toxav/rtp.c, line 496 at r1 (raw file):
Make sure memory is allocated. toxav/rtp.c, line 541 at r1 (raw file):
Use else if toxav/rtp.c, line 560 at r1 (raw file):
Possible double free or freeing a NULL pointer. toxav/rtp.c, line 602 at r1 (raw file):
Use else if toxav/rtp.c, line 621 at r1 (raw file):
Possible double free or freeing a NULL pointer. toxav/rtp.c, line 627 at r1 (raw file):
Use else if toxav/video.c, line 371 at r1 (raw file):
rb_write can return NULL. toxav/video.c, line 373 at r1 (raw file):
rb_write can return NULL. Comments from Reviewable |
changes:
|
Review status: 7 of 8 files reviewed at latest revision, 13 unresolved discussions, some commit checks failed. toxav/rtp.c, line 153 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
@zoff99 what should we call it? toxav/rtp.c, line 263 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
Done. toxav/rtp.c, line 281 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
Done. toxav/rtp.c, line 303 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
Done. toxav/rtp.c, line 443 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
@zoff99 what should we do when this happens? toxav/rtp.c, line 496 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
Done. toxav/rtp.c, line 541 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
No need, there is a return in the previous one. toxav/rtp.c, line 560 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
free(NULL) is fine. How does a double free happen? toxav/rtp.c, line 602 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
See above. toxav/rtp.c, line 621 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
See above. toxav/rtp.c, line 627 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
That would change the semantics. toxav/video.c, line 371 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
free(NULL) is safe. toxav/video.c, line 373 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
free(NULL) is safe. Comments from Reviewable |
22114da
to
3d5e37c
Compare
Reviewed 1 of 1 files at r2. toxav/rtp.c, line 560 at r1 (raw file): Previously, iphydf wrote…
I'm not sure how likely it is and maybe its not but if m_new is not NULL and session->mcb is m_new is freed. Then slot is updated and if its -2 m_new is freed. toxav/rtp.c, line 621 at r1 (raw file): Previously, iphydf wrote…
same as above Comments from Reviewable |
7f09b83
to
b757955
Compare
Review status: 7 of 8 files reviewed at latest revision, 4 unresolved discussions. toxav/rtp.c, line 560 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
That doesn't seem correct. But more interestingly, m_new should always be null here:
It's always free(null). @zoff99 can you look into this? Comments from Reviewable |
Review status: 7 of 8 files reviewed at latest revision, 4 unresolved discussions. toxav/rtp.c, line 621 at r1 (raw file): Previously, endoffile78 (Endoffile) wrote…
Same. Comments from Reviewable |
f884979
to
6d6bb96
Compare
Reviewed 1 of 8 files at r1, 1 of 3 files at r3. toxav/rtp.c, line 352 at r2 (raw file):
chain with toxav/rtp.c, line 374 at r3 (raw file):
reverse condition and use early return toxav/rtp.c, line 413 at r3 (raw file):
this line is the the same in both branches, move outside conditional toxav/toxav.c, line 885 at r3 (raw file):
invert condition so there isn't an empty toxav/video.c, line 371 at r3 (raw file):
same line in both branches, move out of conditional Comments from Reviewable |
82e068b
to
81cd3ce
Compare
25e0932
to
25766bb
Compare
Review status: 0 of 18 files reviewed at latest revision, 9 unresolved discussions. toxav/rtp.c, line 153 at r1 (raw file): Previously, iphydf wrote…
Done. toxav/rtp.c, line 443 at r1 (raw file): Previously, iphydf wrote…
Done. toxav/rtp.c, line 560 at r1 (raw file): Previously, iphydf wrote…
Done. toxav/rtp.c, line 621 at r1 (raw file): Previously, iphydf wrote…
Done. toxav/rtp.c, line 612 at r7 (raw file): Previously, iphydf wrote…
Done. toxav/rtp.c, line 630 at r7 (raw file): Previously, iphydf wrote…
Done. toxav/rtp.c, line 645 at r7 (raw file): Previously, iphydf wrote…
Done. Comments from Reviewable |
Reviewed 1 of 13 files at r6, 5 of 19 files at r10, 4 of 14 files at r12, 8 of 8 files at r13. Comments from Reviewable |
63f0e39
to
140a246
Compare
@robinlinden, @endoffile78: this is ready for another round of review. |
Reviewed 8 of 8 files at r13. Comments from Reviewable |
db6de54
to
9fcd703
Compare
Reviewed 4 of 13 files at r6, 1 of 9 files at r9, 4 of 19 files at r10, 1 of 9 files at r11, 7 of 8 files at r13, 1 of 2 files at r15, 1 of 3 files at r16, 2 of 2 files at r17. toxav/rtp.c, line 49 at r17 (raw file):
calloc generally takes num, size as arguments. This looks weird even if it does the same allocation. toxav/rtp.c, line 300 at r17 (raw file):
Unnecessary parentheses. toxav/rtp.c, line 311 at r17 (raw file):
Unnecessary parentheses. toxav/rtp.c, line 367 at r17 (raw file):
Unnecessary parentheses. Comments from Reviewable |
This change does not include the addition of VP9. We do that in a separate pull request. Changes: * fix the video bug (video frames larger than 65KBytes) by sending full frame length in alternate header field * improve video frame reconstruction logic with slots * configure video encoder and decoder to be multihtreaded * set error resilience flags on video codec * change encoder and decoder softdeadline
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks pending. toxav/rtp.c, line 49 at r17 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. toxav/rtp.c, line 300 at r17 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. toxav/rtp.c, line 311 at r17 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. toxav/rtp.c, line 367 at r17 (raw file): Previously, robinlinden (Robin Lindén) wrote…
Done. Comments from Reviewable |
@robinlinden @iphydf |
This change does not include the addition of VP9. We do that in a
separate pull request.
This change is